package com.example.emqx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.emqx.entity.MybatisOneForOne;
import com.example.emqx.mapper.MybatisOneForOneMapper;
import com.example.emqx.service.MybatisOneForOneService;
import org.springframework.stereotype.Service;

import java.util.List;

//方式一
//@Service
//public class MybatisOneForOneServiceImpl
////        extends ServiceImpl<MybatisOneForOneMapper, MybatisOneForOne>
//        implements MybatisOneForOneService {
//    @Autowired
//    private MybatisOneForOneMapper mybatisOneForOneMapper;
//    @Override
//    public List<MybatisOneForOne> selectList(String pid) {
//        return mybatisOneForOneMapper.selectList(pid);
//    }
//}
@Service
public class MybatisOneForOneServiceImpl
  extends ServiceImpl<MybatisOneForOneMapper, MybatisOneForOne>
        implements MybatisOneForOneService {
    @Override
    public List<MybatisOneForOne> selectList(String pid) {
        return baseMapper.selectList(pid);
    }
}